package br.ucb.sigplan.util;

import java.util.Calendar;

public class SenhaUtil {
	private final static String SENHA_DEFAULT="12345";

	public static String geraSenha (){
		
	    int sec = Calendar.getInstance().get(Calendar.SECOND);
	    int senhaint = new Integer(SENHA_DEFAULT.hashCode() * sec ).intValue();
	    
	    if (senhaint < 0){	    
	    	senhaint = senhaint * -1;
	    }
	    return String.valueOf(senhaint);
	    
	}
	
}
